﻿using KingsSharp.Common.Data;
using KingsSharp.Core;
using CRM.Admin.Contracts.Dto.Logs;
using CRM.Admin.Contracts.Model.Logs;
using System.Linq;

namespace CRM.Admin.Contracts.Contract.Logs
{
    /// <summary>
    /// 登陆日志契约
    /// </summary>
    public interface ILoginLogService:IDependency
    {
        /// <summary>
        /// 登陆日志集合
        /// </summary>
        IQueryable<LoginLog> ItemLoginlog { get; }

        /// <summary>
        /// 新增登陆日志
        /// </summary>
        /// <param name="dtos">登陆日志dto</param>
        /// <returns></returns>
        OperationResult InsertLoginlog(params LoginLogDto[] dtos);
    }
}
